var model = {
    count: 0
}

model.count++
console.log(model.count)

var expr = 'var scount = 22;return scount;'
var s = new Function(expr)()
console.log(s)


var expr1 = 'var count = 23;return count;'

var newCount = new Function(expr1)()
console.log(newCount)
// console.log(scount)

var add = new Function("x","y","return x+y;")

console.log(add(2,35))

console.log("-------------函数表达式--------------");

// say()
// function say() {
//     console.log("saying something!!")
// }

// var fn = function(){
//     console.log("saying something2!!")
// }

// fn()

// var fn2 = function () {
//     console.log("saying something3!")
// }()
// console.log(typeof fn2)


(function (i) { console.log('这是一个立即执行函数'+i)})("laugh")

!(function(i,k){
    console.log(i*k)
})(3,9)